import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'

const pinia = createPinia()
pinia.use(persist)

// 暴露导出
export default pinia

// export =from './modules/user'
// export =from './modules/counter'

// 把index.js作为一个唯一的导出口
import { useUserStore } from './modules/user'
export { useUserStore }
import { useCountStore } from './modules/counter'
export { useCountStore }
